﻿// See https://aka.ms/new-console-template for more information

using KCP.Simple;

Console.WriteLine("Hello, World!");

KcpServer kcpServer = new KcpServer(7200);

Console.WriteLine("服务器已启动");

kcpServer.OnMessage = (session, data) =>
{
    //session.SendAsync();
    Console.WriteLine("KcpReceived:"+data);
};









while (true)
{
    Thread.Sleep(100);
}